import React from 'react';
import {
    useNavigate
} from 'react-router-dom'

function Home(props) {
    const navigate = useNavigate()
    return (
        <div>
            <h3>首页</h3>
            <button onClick={()=>{navigate('/my')}}>
                跳转至个人中心
            </button>
        </div>
    );
}

export default Home;